package com.mpyy.dao.inventory;

import com.mpyy.pojo.InventoryChange;
import com.mpyy.pojo.InventoryDesc;
import com.mpyy.pojo.InventoryReceipts;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @version 1.0
 * @Description InventoryDescMapperDao
 * @Author JW
 * @Date 2022-02-23 16:16
 */
@Repository(value = "inventoryDescMapperDao")
public interface InventoryDescMapperDaoInter {
    /*获取库存商品明细数据*/
    /*@Select("select * from inventory_desc")*/
    //List<InventoryDesc> showAllInventoryDesc(@Param("proId")String proId, @Param("inveDescName")String inveDescName,@Param("page")Integer currentPage,@Param("limit")Integer limit);
    List<InventoryDesc> showAllInventoryDesc(InventoryDesc inventoryDesc);

    /*获取库存商品明细品种合计*/
    int getInventoryDescCount(InventoryDesc inventoryDesc);

    /*获取库存商品汇总数据*/
    List<InventoryDesc> showAllInventoryCollect(InventoryDesc inventoryDesc);

    /*获取库存商品汇总品种合计*/
    List<InventoryDesc> getInventoryCollectCount(InventoryDesc inventoryDesc);

    /**
     * 获取商品批次信息
     * @param inventoryDesc
     * @return
     */
    List<InventoryDesc> getProBatchNumInfo(InventoryDesc inventoryDesc);

    /**
     * 根据仓库分组查询仓库库存明细
     * @param inventoryDesc 库存明细对象
     * @return 库存明细对象集合
     */
    List<InventoryDesc> searchInventoryDepotDesc(InventoryDesc inventoryDesc);

    /**
     * 查询库存变动信息
     * @param inventoryDesc 库存明细对象
     * @return 库存变动信息集合
     */
    List<InventoryChange> searchInventoryChange(InventoryDesc inventoryDesc);

    /*库存变动信息条数*/
    List<InventoryChange> getInventoryChangeCount(InventoryDesc inventoryDesc);

    /**
     * 查询商品月变动汇总信息
     * @param inventoryDesc 库存明细对象
     * @return 商品变动明细集合
     */
    List<InventoryChange> searchWareMonthChange(InventoryDesc inventoryDesc);

    /**
     * 查询商品月变动明细信息
     * @param inventoryDesc 库存明细对象
     * @return 商品变动明细集合
     */
    List<InventoryChange> searchWareMonthChangeDesc(InventoryDesc inventoryDesc);

    /**
     * 查询库存单据详情
     * @param inventoryDesc 库存明细对象
     * @return 库存单据详情集合
     */
    List<InventoryReceipts> searchInventoryReceiptsDesc(InventoryDesc inventoryDesc);

}
